using System;
using UnityEngine;

namespace QGameFramework.License
{
    [Serializable]
    public class License
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        [Header("用户ID")] public string m_UID = "00001";

        /// <summary>
        /// 到期时间 年月日
        /// </summary>
        public YMD m_YMD;

        /// <summary>
        /// 到期时间 时分秒
        /// </summary>
        public HMS m_HMS;

        /// <summary>
        /// 是否到期
        /// </summary>
        [HideInInspector] [Header("是否到期")] public bool m_IsLock = false;

        /// <summary>
        /// 编辑器是否生效
        /// </summary>
        [Header("编辑器是否生效")] public bool m_EnableInEditor = false;
    }

    [Serializable]
    public class YMD
    {
        [Header("年")] public int m_Year = 1970;
        [Header("月")] public int m_Month = 1;
        [Header("日")] public int m_Day = 1;
    }

    [Serializable]
    public class HMS
    {
        [Header("时")] public int m_Hour = 0;
        [Header("分")] public int m_Minute = 0;
        [Header("秒")] public int m_Second = 0;
    }
}